package com.wuyoucar.mapper;

import com.wuyoucar.entity.TUser;
import com.wuyoucar.entity.TUserinfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

@Component
@Mapper
public interface TUserMapper {

    //查询一个用户的个人信息
    TUser queryOneById(@Param("userid") Integer userid);

    //修改用户个人信息
    int updateTUserById(TUser tUser);

    //修改手机号
    int updateTel(@Param("userid") Integer userid,@Param("usertel") String usertel);
    //修改密码
    int updatePwd(@Param("password") String password,@Param("userid") Integer userid);
    //设置或修改用户名
    int updateUsername(@Param("userid") Integer userid,@Param("username") String username);
    //根据id查询用户
    TUser selectOneById(Integer userid);
    //根据name 查询用户
    TUser queryOneByName(String username);
}
